import axios from "axios";
const instance = axios.create({
    baseURL: 'http://localhost:3000',
    timeout: 3000,
})
export const get = (url, params) => {
    return axios.get(url, { params })
}
export const post = (url, data) => {
    return axios.post(url, data)
}
export const put = (url, data) => {
    return axios.put(url, data)
}
export const del = (url, data) => {
    return axios.delete(url, data)
}
export default instance